//
//  SWMessageController.m
//  新浪微博 OC版
//
//  Created by wszyxc on 16/7/18.
//  Copyright © 2016年 wszyxc. All rights reserved.
//

#import "SWMessageController.h"

#import "SWMessageVisitorView.h"

@interface SWMessageController ()

@end

@implementation SWMessageController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}



    //重写loadView的方法
- (void)loadView{
    
    if ([WZHUserDefaults WZHBoolForKey:@"isLogin"]) {
        
        [super loadView];
    }else{
        
        SWMessageVisitorView *visitorView = [SWMessageVisitorView messageVisitorView];
        
        self.view = visitorView;
        
    }
    
}




@end
